package com.test.dao;

import com.test.objects.Author;
import com.test.objects.Category;
import com.test.objects.MyPageException;
import com.test.objects.Post;
import com.test.objects.PostClass;

public interface PostDAO {
	Post[] getAllPosts(int maxRow);
	Post[] getAllPosts(int startRow, int numRow);
	Post[] getAllPosts(PostClass pc, int id, int startRow, int numRow);
	Post getPost(int pId) throws MyPageException;
	int getNumPost();
	int getNumPost(PostClass pc, int id);
	int deletePost(int pId);
	int deleteAllPosts();
	Category getCategory(int catId);
	Category[] getCategories();
	Author getAuthor(int authorId);
	Author[] getAuthors();
	int savePost(Post post) throws MyPageException;
}
